import request from '@/utils/request'

// 房屋列表
export function listRoom(query) {
  return request({
    url: '/system/room/list',
    method: 'get',
    params: query
  })
}

// 删除房屋
export function delRoom(data) {
  return request({
    url: '/system/room/delete',
    method: 'post',
	data:data
  })
}

// 新增房屋
export function insertRoom(data) {
  return request({
    url: '/system/room/insert',
    method: 'post',
	data:data
  }) 
}

// 编辑房屋
export function editRoom(data) {
  return request({
    url: '/system/rome/edit',
    method: 'post',
	data:data
  }) 
}

// 挂租审核
export function Examine(data) {
  return request({
    url: '/system/room/examine',
    method: 'post',
	data:data
  }) 
}

// 所有房屋
export function allListRoom() {
  return request({
    url: '/system/room/allList',
    method: 'get'
  }) 
}